package com.yuhs.zixing.study.design.pattern.dp002.structural.s007.proxy.p001;

import java.time.LocalTime;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/5/2 11:31 AM
 */
public class Client001 {
    public static void main(String[] args) {
        IGamePlayer001 player = new GamePlayer001("张三");
        //开始打游戏，记下时间戳
        System.out.println("开始时间是：" + LocalTime.now());
        player.login("zhangSan", "password");
        //开始杀怪
        player.killBoss();
        //升级
        player.upgrade();
        //记录结束游戏时间
        System.out.println("结束时间是：" + LocalTime.now());
    }
}
